package com.neusoft.neu24.nep.controller;

import com.neusoft.neu24.nep.entity.CommonResult;
import com.neusoft.neu24.nep.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/a")
@CrossOrigin("*")
public class AccountController {

    @Autowired
    IAccountService accountService;

    @PutMapping("/pay/{wxid}/{moeny}")
    public CommonResult pay(@PathVariable("wxid") String wxid, @PathVariable("moeny") Integer money) {
        return accountService.pay(wxid, money);
    }

}
